<?php

namespace app\webapi\vms\model;

use app\webapi\common\BaseModel;

/**
 * @蒋康检测数据模型
 */
class HealthModel extends BaseModel
{
    //定义数据表名
    protected $table = 'jq_website_heath';

    /**
     * @desc 是否已设置获取器
     * @param $value
     * @param $data
     * @return string
     * @author zhaozhiwei
     * @time 2023/12/19-14:23
     */
    public function getIsSettedTextAttr($value, $data)
    {
        $status = [0 => '未设置', 1 => '已设置'];
        return $status[$data['is_setted']];
    }

    /**
     * @desc 是否绑定获取器
     * @param $value
     * @param $data
     * @return string
     * @author zhaozhiwei
     * @time 2023/12/19-14:24
     */
    public function getIsBindingTextAttr($value, $data)
    {
        $status = [0 => '未绑定', 1 => '已绑定'];
        return $status[$data['is_binding']];
    }
}